#pragma once

#ifndef _Enemy_h_
#define _Enemy_h_

#include "Jet.h"
#include "Missile.h"
#include "Player.h"

namespace MyGame {

class Enemy :
            public Jet {
public:
    Enemy(Game* game);
    virtual ~Enemy(void);
    FLOAT GetFireTimer() const;
    void SetFireTimer(FLOAT val);
    Missile* GetIncomigMissile() const;
    void SetIncomingMissile(Missile* val);
    Player* GetPlayer() const;
    void SetPlayer(Player* val);
    bool GetTargeted() const;
    void SetTargeted(bool val);
    virtual void ShootMissile();
    virtual void Update(FLOAT timeDelta);
private:
    FLOAT fireTimer;
    Missile* incomingMissile;
    Player* player;
    bool targeted;
};

}

#endif
